<template>
  <div class="login-Container">
    <!-- 头部 -->
    <div class="header">
      <div class="headerContainer">
        <div class="left">
          <a href="javascript:;"></a>
        </div>
        <div class="right"></div>
      </div>
    </div>
    <!-- 主体 -->
    <div class="body">
      <div class="center">
        <!-- 账号登录 -->
        <div class="login">
          <div class="top">
            <div class="top-left">扫码登录</div>
            <div class="top-right active">账户登录</div>
          </div>
          <!-- 账号密码登录 -->
          <div class="login-center">
            <div class="center-from">
              <div class="phone">
                <input
                  type="text"
                  placeholder="手机号/用户名/邮箱"
                  v-model="phone"
                />
                <span></span>
                <p class="tips" v-if="!phone">请输入登录名</p>
              </div>
              <div class="password">
                <input type="password" placeholder="密码" v-model="password" />
                <span></span>
                <p v-if="!password">密码不能为空</p>
              </div>
              <div class="other">
                <div class="left">短信验证登录</div>
                <div class="right">忘记密码</div>
              </div>
              <div class="item-login">
                登录
              </div>
              <div class="footer">
                <div class="wxLogin">
                  <a href="javascript:;"></a>
                </div>
                <router-link class="register" to="/register">
                  免费注册
                </router-link>
              </div>
            </div>
          </div>
        </div>
        <!-- 扫码登录 -->
        <div></div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="footer">
      <p>
        Copyright 2008-2020 vip.com，All Rights Reserved ICP证：粤 B2-20080329
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {
      phone: "",
      password: ""
    };
  }
};
</script>

<style lang="less" scoped>
.login-Container {
  // 头部
  .header {
    width: 100%;
    height: 100px;
    .headerContainer {
      width: 1000px;
      height: 100px;
      margin: 0 auto;
      .left {
        float: left;
        a {
          display: block;
          width: 125px;
          height: 100px;
          background-image: url(../../assets/images/a.png);
          background-position: -308px -57px;
        }
      }
      .right {
        float: right;
        width: 304px;
        height: 100px;
        background-image: url(../../assets/images/a.png);
        background-position: 0 0;
      }
    }
  }
  // 主体
  .body {
    width: 100%;
    height: 650px;
    background-image: url(../../assets/images/1621046087806.jpg);
    background-position-x: -9px;
    .center {
      width: 1000px;
      height: 550px;
      margin: 0 auto;
      padding: 50px 20px;
      .login {
        width: 360px;
        height: 441px;
        float: right;
        background-color: #fff;
        .top {
          position: relative;
          width: 360px;
          height: 50px;
          border-bottom: 1px solid #e0e0e0;
          .top-left {
            display: inline-block;
            width: 180px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            font-size: 18px;
            font-weight: 700;
            color: #666;
            cursor: pointer;
            &::after {
              position: absolute;
              content: "";
              width: 1px;
              height: 20px;
              top: 15px;
              left: 179px;
              background-color: #ccc;
              font-size: 0;
            }
          }
          .top-right {
            color: #f10180;
            display: inline-block;
            width: 180px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
          }
        }
        .login-center {
          width: 360px;
          height: 251px;
          .center-from {
            width: 300px;
            height: 271px;
            margin: 0 auto;
            font-size: 14px;
            .phone {
              position: relative;
              width: 300px;
              height: 46px;
              margin: 40px 0 19px 0;
              input {
                width: 248px;
                height: 32px;
                line-height: 32px;
                padding: 6px 10px 6px 40px;
                border: 1px solid #b2b2b2;
                border-radius: 3px;
                color: #333;
              }
              span {
                position: absolute;
                width: 20px;
                height: 20px;
                background-image: url(../../assets/images/a.png);
                background-position: -504px -221px;
                top: 13px;
                left: 11px;
              }
              p {
                color: #ec5042;
                font-size: 12px;
                margin-top: 3px;
              }
            }
            .password {
              position: relative;
              width: 300px;
              height: 46px;
              margin: 26px 0 19px 0;
              input {
                width: 248px;
                height: 32px;
                line-height: 32px;
                padding: 6px 10px 6px 40px;
                border: 1px solid #b2b2b2;
                border-radius: 3px;
                color: #333;
              }
              span {
                position: absolute;
                width: 20px;
                height: 20px;
                background-image: url(../../assets/images/a.png);
                background-position: -528px -221px;
                top: 13px;
                left: 11px;
              }
              p {
                color: #ec5042;
                font-size: 12px;
                margin-top: 3px;
              }
            }
            .other {
              margin-top: 24px;
              height: 19px;
              width: 300px;
              .left {
                float: left;
                font-size: 14px;
              }
              .right {
                float: right;
              }
            }
            .item-login {
              width: 298px;
              height: 44px;
              line-height: 44px;
              margin-top: 24px;
              line-height: 46px;
              text-align: center;
              color: #fff;
              background-color: #f10180;
              border: 1px solid #f10180;
              border-radius: 3px;
              font-size: 18px;
              cursor: pointer;
            }
            .footer {
              width: 300px;
              margin: 0 auto;
              background-color: #fff;
              .wxLogin {
                width: 300px;
                height: 40px;
                position: relative;
                margin-bottom: 10px;
                a {
                  display: block;
                  position: relative;
                  width: 40px;
                  height: 40px;
                  border: 10px solid #fff;
                  border-radius: 50%;
                  margin: 20px auto 10px;
                  background-image: url(../../assets/images/a.png);
                  background-position: -580px -161px;
                  z-index: 2;
                }
              }
              .wxLogin::before {
                content: "";
                position: absolute;
                z-index: 1;
                width: 100%;
                border-bottom: 1px solid #e0e0e0;
                top: 30px;
              }
              .register {
                display: block;
                height: 30px;
                line-height: 30px;
                font-size: 14px;
                cursor: pointer;
              }
            }
          }
        }
      }
    }
  }
  .footer {
    width: 1000px;
    height: 78px;
    line-height: 78px;
    margin: 0 auto;
    p {
      text-align: center;
      color: #666;
    }
  }
}
</style>
